message("")
message("=====I am in Cmake : cmake_groupTop - START=====")
cmake_minimum_required (VERSION 3.0)

project(cmake_groupTop VERSION 1.0.0)

message("I am in Cmake : cmake_groupTop")
#IF (WIN32) # windows
#    set (LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/../build-cmake_groupTop)
#ELSE () # linux
#    set (LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/../build-cmake_groupTop)
#ENDIF ()
# do notneed set CMAKE_BINARY_DIR,没有起作用
set (LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/../bin)
set (EXECUTABLE_OUTPUT_PATH "${LIBRARY_OUTPUT_PATH}")

message("CMAKE_BINARY_DIR       = " ${CMAKE_BINARY_DIR})
message("LIBRARY_OUTPUT_PATH    = " ${LIBRARY_OUTPUT_PATH})
message("EXECUTABLE_OUTPUT_PATH = " ${EXECUTABLE_OUTPUT_PATH})
# lib
add_subdirectory (cmake_group)

# test Lib
add_subdirectory (test_cmake_group)

message("=====I am in Cmake : cmake_groupTop - END=====")
message("")
